package extends08;

public class Square extends Shape {
    //边长
    int side;
    @Override
    public int getPerimeter() {
        return 4*side;
    }

    @Override
    public int getArea() {
        return side*side;
    }
}
